import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner n = new Scanner(System.in);
        int x = n.nextInt();
        if( x < 0) {
            System.out.println(1);
        } else if (x == 0) {
            System.out.println(0);
        }else {
            System.out.println(-1);
        }

    }
    public static void main4(String[] args) {
        Scanner n = new Scanner(System.in);
        int[] arr = new int[10];
        for (int i = 0; i < 10; i++) {
            int z = n.nextInt();
            arr[i] = z;
        }

        for (int i = 0; i < 10; i++) {
            System.out.printf(arr[i] + " ");
        }
    }
    public static void main3(String[] args) {
        Scanner n = new Scanner(System.in);
        double a = n.nextDouble();
        int b = n.nextInt();
        int c = n.nextInt();
        int d = n.nextInt();
        if (d == 1) {
            if (c == 11 && b == 11) {
                a = a * 0.7 - 50;
                if (a <= 0) {
                    System.out.print("0.00");
                }
                else
                    System.out.printf("%.2lf", a);
            }
            else if (c == 12 && b == 12) {
                a = a * 0.8 - 50;
                if (a <= 0) {
                    System.out.print("0.00");
                }
                else {
                    System.out.printf("%.2lf", a);
                }
            }
        }
        else if (d == 0) {
            if (c == 11 && b == 11) {
                a = a * 0.7;
                if (a <= 0) {
                    System.out.print("0.00");
                }
                else {
                    System.out.printf("%.2lf", a);
                }
            }
            else if (c == 12 && b == 12) {
                a = a * 0.8;
                if (a <= 0) {
                    System.out.print("0.00");
                }
                else
                    System.out.printf("%.2lf", a);
            }
        }
    }
    public static void main2(String[] args) {
        Scanner n = new Scanner(System.in);
        int num = n.nextInt();
        int[] arr = new int[num];
        
        for (int i = 0; i < num; i++) {
            int z = n.nextInt();
            arr[i] = z;
        }

        for (int i = 0; i < num - 1; i++) {
            for (int j = 0; j < num - 1 - i; j++) {
                if (arr[j] < arr[j + 1]) {
                    int tmp = arr[j];
                    arr[j] = arr[j + 1];
                    arr[j + 1] = tmp;
                }
            }
        }
        for (int i = 0; i < 5; i++) {
            System.out.print(arr[i] + " ");
        }
    }
    public static void main1(String[] args) {
        Scanner a = new Scanner(System.in);
        System.out.print("请输入一个数：>");
        int num =a.nextInt();
        for (int i = 0; i < num; i++) {
            System.out.print("SB" + " ");
            if(i % 8 == 0)
                System.out.println();
        }
    }
}